package belf.migrate.api.type;

public enum LevelType {
    NORMAL(""),
    WARNING("warning"),
    ERROR("error");

    private String name;

    private LevelType(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public static boolean isIncompatible(String levelName) {
        return ERROR.getName().equals(levelName) || WARNING.getName().equals(levelName);
    }
}
